package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjWithdrawSet;
import com.zb.vo.WithdrawSetVo;

/**
 * <p>
 * 提现设置表 服务类
 * </p>
 *
 * @author WEN
 * @since 2024-05-25
 */
public interface ZjWithdrawSetService extends IService<ZjWithdrawSet> {

    /**
     * 初始化 或 恢复初始化提现设置
     * @param custAccId 商家ID
     */
    void initOrRestoreDefaultWithdrawSet(Long custAccId);

    /**
     * 初始化默认值
     * @param custAccId 商家ID
     */
    void initDefaultValue(Long custAccId);

    /**
     * 保存提现设置
     * @param custAccId 商家ID
     * @param withdrawSetVo
     */
    void save(Long custAccId, WithdrawSetVo withdrawSetVo);

    /**
     * 获取提现设置
     * @param custAccId 商家ID
     * @return
     */
    WithdrawSetVo getWithdrawSet(Long custAccId);

    /**
     * 根据商家ID获取提现冻结期
     * @param custAccId 商家ID
     * @return
     */
    Integer getWithdrawFreezeDayByCustAccId(Long custAccId);


}
